/*******************************************************************************
  * Copyright(c) 2023 Levetop Semiconductor Co.,Led. All rights reserved.
  * @file     uiEncoder.h
  * @author   UartTFT Application Team
  * @version  V0.0.1
  * @date     2023-01-04
  * @brief    This file contains the functions prototypes for the UartTFT
  *           Application display firmware.
 ********************************************************************************/

#ifndef UIENCODER_H_
#define UIENCODER_H_

#include "type.h"
#include "module_select.h"

extern uint16_t gEncoder_addr[];
extern uint8_t gEncoder_num;
extern uint8_t gEncoderFlag;
extern uint8_t knob_flag;

extern uint16_t Check_box_add;
extern uint8_t Check_box_flag;
extern uint8_t Encoder_num;
extern uint8_t Encoder_read_Flag, Encoder_Freetime;
extern uint8_t knob_dir, SW_flag, Enc0, Enc1, SW_flag4, key_time;
extern uint16_t Encoder_time;
extern uint8_t Double_click_interval;
extern uint8_t Long_press, Encoder_type;

extern uint8_t encoder_class_time_flag;  //��λ��ʱ��־
extern uint16_t encoder_class_time;      //��λ��ʱ
extern uint8_t encoder_class_count;      //��ת����

/*encoder*/
extern void Display_encoder(uint8_t *buff, uint8_t type);
extern void get_encoder(uint8_t type, uint8_t *buff, uint16_t addr);
extern void encoder(void);

#endif /* UIENCODER_H_ */
